﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BI.CF.Model;
using BI.CF.BLL;
using BI.CF.DAL;

namespace BackStage.Hand
{
    /// <summary>
    /// Authonym 的摘要说明
    /// </summary>
    public class Authonym : IHttpHandler
    {
        Autonym_BLL bll = new Autonym_BLL();
        /// <summary>
        /// 加载实名认证数据
        /// </summary>
        /// <param name="context"></param>
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string UserName = context.Request["UserName"];
            string IdCard = context.Request["IdCard"];
            string MinTime = context.Request["CrefiticationTimeMin"];
            string MaxTime = context.Request["CrefiticationTimeMax"];
            int PageIndex = int.Parse(context.Request["PageIndex"]);
            int PageSize = 10;
            BI.CF.PageList.Pager<AutonymModel> li = bll.GetAutonymShow(UserName, MinTime, MaxTime, IdCard, PageIndex, PageSize);
            string json = JsonHelper.JsonSerializer<BI.CF.PageList.Pager<AutonymModel>>(li);
           
            context.Response.Write(json);
        }
      
        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}